import createHeading from './heading.js'
import './main.css'
import importImg from './img.jpg'
import footer from './footer.html'

const heading = createHeading()
document.body.append(heading)

let img = new Image()
img.src = importImg
document.body.append(img)
document.write(footer)
fetch('/api/users').then(res => {
  console.log(res);
})
// console.log(module);
if(module.hot) {
  console.log('fsff');
  module.hot.accept('./heading.js', () => {
    console.log('heading update');
  })
}